package cool.webstudy.admin.constant.enums.rescode;

import lombok.extern.slf4j.Slf4j;

/**
 * @author 莫振双
 * @date 2025/3/15 10:15
 * @description: 动态flag响应码枚举
 */
@Slf4j
public enum DynamicFlagResCodeEnum implements BaseResCodeEnum{
    RC_ERROR_BATCH_REFRESH_FLAG("150001","批量刷新flag值失败！"),
    RC_ERROR_COMPETITION_UN_CODE_MISS("150002","赛事业务主键参数缺失！"),
    RC_ERROR_TEAM_COUNT_IS_ZERO("150003","由于无参赛队伍，刷新flag失败！"),
    RC_ERROR_CONTAINER_ID_MISS("150004","容器id参数缺失！"),
    RC_ERROR_FLAG_MISS("150005","flag为空！"),
    RC_ERROR_FLAG_VALIDATION_FAILED("150005","flag校验不通过！"),
    RC_ERROR_FLAG_COMMITTED("150005","flag已经提交过，请勿重复提交！"),
    RC_ERROR_COMMIT_SELF_TEAM_FLAG("150006","不可提交自己队伍的flag！"),
    ;
    private String code;
    private String msg;
    DynamicFlagResCodeEnum(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }
    @Override
    public String code() {
        return code;
    }

    @Override
    public String msg() {
        return msg;
    }
}
